package com.person.service.provider;

import com.alibaba.dubbo.config.annotation.Service;
import com.person.service.api.PersonService;
import com.person.service.entity.Person;
import com.person.service.dao.PersonDao;
import org.springframework.beans.factory.annotation.Autowired;

@Service
public class PersonServiceImpl implements PersonService {

    //在spring的容器中,可以使用@Autowired注入
    @Autowired
    private PersonDao personDao;

    public Person getOne(int id) {
        Person person = personDao.getOne(id);
        return person;
    }

    public void save(Person person) {

    }


}
